package com.ruoyi.home.jinrong.mapper;

import com.ruoyi.home.jinrong.entity.request.CwDealPerDaySearchPage;
import com.ruoyi.home.jinrong.entity.response.CwDealPerDayDetailPayDto;
import com.ruoyi.home.jinrong.entity.response.CwDealPerDayDto;
import com.ruoyi.home.jinrong.entity.response.CwDealPerDayTotalDto;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 郭豪
 * @date 2021/8/1 16:55
 * @description:
 */
@Mapper
@Repository
public interface CwDealPerDayMapper {
    /**
     * 分页查询出(收入,支出)明细列表
     *
     * @return
     */
    public List<CwDealPerDayDto> searchCwDealPerDayPage(CwDealPerDaySearchPage cwDealPerDaySearchPage);

    /**
     * 查询总条目数
     * @param cwDealPerDaySearchPage
     * @return
     */
    public Integer getDataNum(CwDealPerDaySearchPage cwDealPerDaySearchPage);

    /**
     * 查询出(收入,支出)明细列表页顶部金额合计信息
     * @param param
     * @return
     */
    public CwDealPerDayTotalDto searchCwDealPerDaySum(CwDealPerDaySearchPage param);

    /**
     * 查看支出明细
     * @param
     * @param condition
     * @return
     */
    public List<CwDealPerDayDetailPayDto> searchCwDealPerDayDetailPayPage(CwDealPerDaySearchPage condition);


}

